package model;

import java.io.Serializable;

public class TopicMessage implements Serializable {

    private static final long serialVersionUID = -487802396116328210L;
    private String type;
    private Topic topic;

    public TopicMessage() {
    }

    public TopicMessage(String type, Topic topic) {
        this.type = type;
        this.topic = topic;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Topic getTopic() {
        return topic;
    }

    public void setTopic(Topic topic) {
        this.topic = topic;
    }

    @Override
    public String toString() {
        return "TopicMessage{" +
                "type='" + type + '\'' +
                ", topic=" + topic +
                '}';
    }
}
